/**
 * @description  数据模型
 */
const seq = require('../seq')
const {
  INTEGER,
  BOOLEAN
} = require('../type')

const BlogRelation = seq.define('blogRelation', {
  userId: {
    type: INTEGER,
    allowNull: false,
    comment: '用户ID'
  },
  contentId: {
    type: INTEGER,
    allowNull: false,
    comment: '文章ID'
  },
  isLike: {
    type: BOOLEAN,
    content: '是否点赞'
  },
  isCollect: {
    type: BOOLEAN,
    content: '是否收藏'
  },
})

module.exports = BlogRelation